
package Componentes;

import Configuraciones.Configuraciones;
import Modelos.TblClientes;
import java.awt.Color;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import org.edisoncor.gui.label.LabelRound;


public class labelTag extends LabelRound{
    private TblClientes user;
    
    public labelTag(){
        //this.setBackground(new Color(121, 137, 167));
//        this.setBackground(Color.lightGray);
//        this.setForeground(new Color(121, 137, 167));
        this.setAngulo(4);
        this.setFont(new java.awt.Font("Arial", 0, 14));
        this.setIcon(Configuraciones.ICONO_MAIL);
   //     this.setDistanciaDeSombra(0);
        
        this.addMouseListener(new MouseAdapter() {

            @Override
            public void mouseReleased(MouseEvent me) {
                super.mouseReleased(me);
                System.out.println("Pinchaste");
            }
            
        
        });
    }
    
    public labelTag(TblClientes user){
        this();
        this.user=user;
        this.setText(user.getNombreCorto());
        this.setToolTipText(user.getCorreo());
    }
    
    


    public TblClientes getUser() {
        return user;
    }

  
    public void setUser(TblClientes user) {
        this.user = user;
    }

    
}
